﻿<Window x:Class="Probel.Ldoc.Views.ToolBoxes.ExtractPicturesView"
        
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:t="clr-namespace:Probel.Ldoc.Views.Properties"
        
        Title="{x:Static t:Messages.Title_ExtractPictures}"  
        ResizeMode="NoResize" 
        ShowInTaskbar="False" 
        WindowStartupLocation="CenterOwner" 
        WindowStyle="ToolWindow" 
        SizeToContent="Height"
        Width="400">
    <Window.Resources>
        <ResourceDictionary>
            <ResourceDictionary.MergedDictionaries>
                <ResourceDictionary Source="../Themes/Generic.xaml"/>
                <ResourceDictionary>
                    <Style TargetType="Label">
                        <Setter Property="Width" Value="90"/>
                    </Style>
                </ResourceDictionary>
            </ResourceDictionary.MergedDictionaries>
        </ResourceDictionary>
    </Window.Resources>
    <DockPanel>
        <DockPanel>
            <TextBlock DockPanel.Dock="Top" Margin="5"
                   Text="{x:Static t:Messages.Title_ExtractPictures}" 
                   FontSize="20" 
                   Foreground="{StaticResource TaskDialogMainInstructionBrush}"/>
            <Border Style="{StaticResource ToolBoxBorderStyle}">
                <StackPanel Orientation="Horizontal"
                            HorizontalAlignment="Right">
                    <Button Name="btn_Ok"
                            Content="{x:Static t:Messages.Btn_Ok}"
                            Style="{DynamicResource ButtonToolBoxStyle}" 
                            IsDefault="True" Click="Click_Extract"/>
                    <Button Name="btn_Cancel"
                            Click="Click_Cancel"
                            Content="{x:Static t:Messages.Btn_Cancel}"
                            Style="{DynamicResource ButtonToolBoxStyle}"/>
                </StackPanel>
            </Border>
            <DockPanel DockPanel.Dock="Top">
                <Button DockPanel.Dock="Right" Width="25"
                        Style="{DynamicResource ButtonToolBoxStyle}" 
                        Content="..." Click="Click_ChoosePath"/>
                <Label DockPanel.Dock="Left" 
                       Content="{Binding x:Static t:Messages.Lbl_Path}"/>
                <TextBox DockPanel.Dock="Left" 
                         Margin="5"
                         Text="{Binding ZipPath}"/>
            </DockPanel>
            <ProgressBar DockPanel.Dock="Bottom" 
                         Height="25" 
                         Margin="5" 
                         Value="{Binding Progress}"
                         Maximum="{Binding Maximum}"/>
        </DockPanel>
    </DockPanel>
</Window>
